/**
 * 存放后在下次取后删除
 */
class ConveyerBelt {
  private _store: { [key: string]: any } = {}
  /**
   * 存放数据
   * @param key
   * @param value
   */
  public putIn(key: string | number, value: any) {
    this._store[key] = value
  }

  /**
   * 获取数据
   * @param key
   */
  public takeOut(key: string | number) {
    const value = this._store[key]
    delete this._store[key]
    return value
  }
}
export default ConveyerBelt
